{% extends 'base.html' %}

{% block content%}

<table class="tabl">
<tr><td colspan="2" class="heador"><strong>Поощрения сотрудника</strong></td></tr>
    <tr>
        <td class="two" style="width:20%">
            <strong><a href="{{ object.get_absolute_url }}">{{object}}</a></strong><br>
            Т. номер:&nbsp;{{object.tabel_number}}<br>
        </td>
        <td class="one" style="width:80%">
            {% for award in object.awardedemployee_set.all %}
                <strong>{{ forloop.counter }}.{{award.promotion.title}} - {{award.award_date}}г.</strong><br>
            {% empty %}
                <strong>Поощренных нет</strong><br>
            {% endfor %}
        </td>
    </tr>
</table>
{% endblock%}